﻿using Alipay.AopSdk.F2FPay.Domain;
using Alipay.AopSdk.F2FPay.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThirdParty.Application.Model.ViewModel.Request
{
    /// <summary>
    ///  微信创建订单请求
    /// </summary>
    public class WxCreateOrderReqDto
    {
        /// <summary>
        /// 交易号，用于查询
        /// </summary>
        public string TradeNo { get; set; }
        /// <summary>
        /// 商品ID(非空)
        /// </summary>
        public string ProductId { get; set; }

        /// <summary>
        ///  商品描述
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        ///  商品附加数据
        /// </summary>
        public string ProductAttach { get; set; }

        /// <summary>
        /// 支付金额(非空)
        /// </summary>
        public decimal PayAmount { get; set; }


        /// <summary>
        /// 商品标记
        /// </summary>
        public string GoodsTag { get; set; }

        /// <summary>
        /// 微信用户唯一标识，JSAPI支付时传入
        /// </summary>
        public string OpenId { get; set; }


        /// <summary>
        /// 校验
        /// </summary>
        /// <returns></returns>
        public bool Validate()
        {
            return !string.IsNullOrWhiteSpace(ProductId) && !string.IsNullOrWhiteSpace(ProductId) && !string.IsNullOrWhiteSpace(ProductId);
        }

    }


}
